package com.zjw.zy

import android.app.Application
import com.blankj.utilcode.util.Utils
import com.tencent.mmkv.MMKV
import com.zjw.zy.base.special.UnCatcherHandler
import com.zjw.zy.utils.AppUtils
import com.zjw.zy.utils.LogUtils
import com.zjw.zy.utils.OcrUtils

/**
 * @author ：zhong.jw
 * @date ：Created in 2022/9/26 17:04
 */
class App : Application() {

    companion object {
        private const val TAG = "App"
    }

    override fun onCreate() {
        super.onCreate()
        LogUtils.d(TAG, "onCreate")

        init()
    }

    private fun init() {
        LogUtils.d(TAG, "init start")
        AppUtils.init(this)
        Utils.init(this)
        MMKV.initialize(this)
        if (!BuildConfig.DEBUG) {
            UnCatcherHandler.getInstance().init()
        }
        LogUtils.d(TAG, "init end")
    }
}